<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <link href="../../../node_modules/mocha/mocha.css" rel="stylesheet" />
</head>

<body>
  <div id="mocha"></div>

  <script src="../../../node_modules/chai/chai.js"></script>
  <script src="../../../node_modules/mocha/mocha.js"></script>

  <script src="../../setup/browser.env.js"></script>
  <script src="../../module-system/module.spec.js"></script>
  <script src="./polyfill.bundle.js"></script>

  <script>
  if (/globals=off/.test(location.search)) {
    describe('Browser:Polyfill:Require:Webpack', () => {
      addModuleSuite({ fetch, Request, Response, Headers })
      addPolyfillSuite({ fetch })
    })
  } else {
    describe('Browser:Native:Require:Webpack', () => {
      addModuleSuite({ fetch, Request, Response, Headers })
      addNativeSuite({ fetch })
    })
  }

  mocha.checkLeaks()
  mocha.run()
  </script>
</body>
</html>
